<template>
    <div class="update-notification">
        <span>发现新版本，请刷新页面以使用最新功能</span>
    </div>
</template>

<script setup lang="ts">
import { ref, onMounted } from 'vue';

</script>

<style scoped lang="less">
.update-notification {
    display: flex;
    position: fixed;
    bottom: 20px;
    left: 50%;
    z-index: 9999;
    padding: 16px 24px;
    background: #fff;
    border-radius: 8px;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
    align-items: center;
    gap: 16px;

    .actions {
        display: flex;
        gap: 8px;
    }

    button {
        padding: 6px 12px;
        font-size: 14px;
        cursor: pointer;
        border: none;
        border-radius: 4px;

        &.refresh-btn {
            color: white;
            background: #1890ff;
        }

        &.close-btn {
            color: #666;
            background: #f5f5f5;
        }
    }
}

.slide-enter-active,
.slide-leave-active {
    transition: all 0.3s ease;
}

.slide-enter-from,
.slide-leave-to {
    opacity: 0;
    transform: translate(-50%, 100%);
}
</style>